<?php
class Relative extends AppModel {

	var $name = 'Relative';
	var $useDbConfig = 'ksmu';
	var $validate = array(
		'relativestype_id' => array('numeric'),
		'studentinfo_id' => array('numeric'),
		'passport_data' => array('notempty'),
		'fio' => array('notempty')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Relativestype' => array(
			'className' => 'Relativestype',
			'foreignKey' => 'relativestype_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Studentinfo' => array(
			'className' => 'Studentinfo',
			'foreignKey' => 'studentinfo_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

}
?>